<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <title>西京文交所管理端-添加藏品</title>
    <link rel="stylesheet" href="../../static/iconfont/iconfont.css" >
    <link rel="stylesheet" href="../../static/frameset.css" >
</head>
<body>

    <div id="J_wrap" class="m_wrap m_box_v p_form none">
        <div class="m_top">
            <headers v-on:callback="headerHandle" :userobj.sync="userobj"></headers>
        </div>
        <div class="m_content m_flex1 m_box">
            <menunav index="team" sub="assess" :navobj.sync="userobj.group_acl"></menunav>
            <div class="container m_flex1 m_over">
                <ul class="breadcrumbs">
                    <li><span>团队管理</span>&gt;</li>
                    <li><a href="assess.html">团队藏品考核</a>&gt;</li>
                    <li class="on">{{ id ? '修改' : '添加' }}配置</li>
                </ul>
                <table class="m_fmtable fixed" v-allcheck="check">
                    <tbody>
                        <tr>
                            <th>层级：</th>
                            <td>
                                <select class="m_select" v-model="level">
                                    <option selected="" value="1">运营中心 / 会员单位</option>
                                    <option value="2">营业部</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>团队：</th>
                            <td>
                                <span>
                                    <select class="m_select" name="type" v-model="team_id" check="[{'type':'require'}]">
                                        <option value='' disabled selected hidden>请选择</option>
                                        <option value="{{ item.team_id }}" v-for="item in teamList" v-if="level == 1">{{ item.team_sn }}</option>
                                        <option value="{{ item.team_id }}" v-for="item in departList" v-if="level == 2">{{ item.team_sn }}</option>
                                    </select>
                                </span>
                                <div class="m_check {{ selected ? 'on' : '' }}" v-on:click="selected = !selected">设为营业部考核藏品</div>
                            </td>
                        </tr>
                        <tr>
                            <th>藏品：</th>
                            <td>
                                <div class="sel_box" v-for="item in colids">
                                    <productselect :col_id.sync="item.col_id" check="[{'type':'require'}]" name="请选择"></productselect>
                                    <a href="javascript:;" v-on:click="remove(item, $index)" v-if="$index > 0">删除</a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <a href="javascript:;" v-on:click="add">添加</a>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <button class="m_btn" v-on:click="submit">提交</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>


    <script src="../../js/plugins/zepto/zepto.min.js"></script>
    <script src="../../js/plugins/vue/vue.min.js"></script>
    <script src="../../js/plugins/seajs/sea.js"></script>
    <script src="../../js/plugins/seajs/seajs-text.js"></script>

    <script>
        seajs.use( "../../js/page/team/assess_add" );
    </script>

</body>
</html>
